package com.ereport.dao;

import org.hibernate.Session;
import org.hibernate.Transaction;

import com.ereport.entity.AdminExeBudget;
import com.ereport.util.ApplicationContext;

public class AdminDailyActivityDAO {
static Transaction tx;
	
	private  void endOperations(Session session) {
		
		session.close();
		session=null;
	}

	private  Session startOperations()throws Exception {
		
		Session session = ApplicationContext.getHiberSession().openSession();
		tx=session.beginTransaction();
		return session;
		
	}

	/*public int insert(AdminExeBudget ae) throws Exception {
		Session session = startOperations();
		session.saveOrUpdate(ae);
		session.getTransaction().commit();
		endOperations(session);
		return 0;
		
	}*/
	
}
